<!DOCTYPE html>
<html lang="ch-ZN">
<head>
    <meta charset="UTF-8">
    <title>angular分页插件</title>
    <link rel="stylesheet" href="lib/bootstrap.css">
    <link rel="stylesheet" href="lib/font-awesome.css">
    <script src="lib/angular.js"></script>
    <script src="comm/pagination.js"></script>
</head>
<body ng-app="a-pagination" ng-controller="pageCtrl">
<a-pagination config="config" change="xxx()"></a-pagination>

<script>
    (function () {
        "use strict";

        angular.module("a-pagination")
                .controller("pageCtrl",["$scope",
                        function ($scope) {
                            $scope.xxx = function () {
                                console.log($scope.config);
                            }
                        }]
                )
    })();
</script>
</body>
</html>